package com.macro.mall.service.impl;

import com.macro.mall.mapper.UmsMemberLevelMapper;
import com.macro.mall.model.UmsMemberLevel;
import com.macro.mall.model.UmsMemberLevelExample;
import com.macro.mall.service.UmsMemberLevelService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/** 会员等级管理Service实现类 Created by macro on 2018/4/26. */
@Service
public class UmsMemberLevelServiceImpl implements UmsMemberLevelService {
  @Autowired private UmsMemberLevelMapper memberLevelMapper;

  @Override
  public List<UmsMemberLevel> list(Integer defaultStatus) {
    UmsMemberLevelExample example = new UmsMemberLevelExample();
    example.createCriteria().andDefaultStatusEqualTo(defaultStatus);
    return memberLevelMapper.selectByExample(example);
  }
}
